package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.IAdminInfoBiz;
import com.yc.rh.dao.IAdminInfoDao;
import com.yc.rh.entities.AdminInfo;

/**
 * 后台管理员的业务层
 */
public class AdminInfoBizImpl implements IAdminInfoBiz{
	private IAdminInfoDao adminInfoDao;
	
	public void setAdminInfoDao(IAdminInfoDao adminInfoDao) {
		this.adminInfoDao = adminInfoDao;
	}

	@Override
	public int addAdminInfo(AdminInfo af) {
		return adminInfoDao.addAdminInfo(af);
	}

	@Override
	public int delAdminInfo(String aids) {
		return adminInfoDao.delAdminInfo(aids);
	}

	@Override
	public AdminInfo loginAdmin(String aid, String pwd) {
		return adminInfoDao.loginAdmin(aid, pwd);
	}

	@Override
	public int updateAdmin(AdminInfo af) {
		return adminInfoDao.updateAdmin(af);
	}

	@Override
	public List<AdminInfo> find(Integer pageNo, Integer pageSize) {
		return adminInfoDao.find(pageNo, pageSize);
	}

	@Override
	public int getTotal() {
		return adminInfoDao.getTotal();
	}
}
